import 'package:flutter/material.dart';
import "package:get/get.dart";

class SubmitTask extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Color(0xffffffff),
        centerTitle: true,
        leadingWidth: 40,
        title: Text('提交任务'),
        leading: IconButton(
          onPressed: () {
            Get.back();
            print('object');
          },
          icon: Image.asset('static/images/back.png'),
        ),
      ),
      body: ListView(
        children: [
          Container(
            margin: EdgeInsets.symmetric(horizontal: 15),
            padding: EdgeInsets.all(10),
            decoration: BoxDecoration(
                border: Border.all(color: Color(0XFFDDDDDD)),
                borderRadius: BorderRadius.circular(10)),
            child: Row(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                ClipRRect(
                  borderRadius: BorderRadius.circular(7), // 设置圆角大小
                  child: Image.asset(
                    'static/aaa.png',
                    width: 60,
                    height: 80,
                    fit: BoxFit.fill,
                  ),
                ),
                Expanded(
                    child: Padding(
                  padding: EdgeInsets.symmetric(horizontal: 10),
                  child: Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                      Text(
                        '策划人要拥有的14张推要拥有的14张要拥有的14张广排期表！高',
                        style: TextStyle(
                          fontSize: 14,
                          fontWeight: FontWeight.bold,
                          overflow: TextOverflow.ellipsis,
                        ),
                      ),
                      SizedBox(
                        height: 10,
                      ),
                      Row(
                        mainAxisAlignment: MainAxisAlignment.spaceBetween,
                        children: [
                          Column(
                            crossAxisAlignment: CrossAxisAlignment.start,
                            children: [
                              Text(
                                '点赞',
                                style: TextStyle(fontSize: 12),
                              ),
                              SizedBox(
                                height: 3,
                              ),
                              Text(
                                '2333.3w',
                                style: TextStyle(
                                    fontSize: 14, fontWeight: FontWeight.bold),
                              ),
                            ],
                          ),
                          Column(
                            crossAxisAlignment: CrossAxisAlignment.start,
                            children: [
                              Text(
                                '点赞',
                                style: TextStyle(fontSize: 12),
                              ),
                              SizedBox(
                                height: 3,
                              ),
                              Text(
                                '2333.3w',
                                style: TextStyle(
                                    fontSize: 14, fontWeight: FontWeight.bold),
                              ),
                            ],
                          ),
                          Column(
                            crossAxisAlignment: CrossAxisAlignment.start,
                            children: [
                              Text(
                                '点赞',
                                style: TextStyle(fontSize: 12),
                              ),
                              SizedBox(
                                height: 3,
                              ),
                              Text(
                                '2333.3w',
                                style: TextStyle(
                                    fontSize: 14, fontWeight: FontWeight.bold),
                              ),
                            ],
                          ),
                        ],
                      ),
                    ],
                  ),
                ))
              ],
            ),
          )
        ],
      ),
    );
  }
}
